Package-level declarations

Types

Link copied to clipboard
data class AffineTransformationMatrix2(val m00: Double, val m01: Double, val m02: Double, val m10: Double, val m11: Double, val m12: Double) : Transformer<Vec2>

Represents a 2D affine transformation matrix.

Link copied to clipboard
data class Line2(val direction: Vec2, val originOffSet: Double, val precision: DoubleEquivalence = DEFAULT_DOUBLE_EQUIVALENCE) : Line<Vec2>

Represents a line in 2D space defined by a direction vector and an offset from the origin.

Link copied to clipboard
class PolarCoordinates(radius: Double, azimuth: Double) : Spatial

Represents a point in polar coordinates. See polar coordinate system for more information.

Link copied to clipboard
data class Segment2(val start: Vec2, val end: Vec2) : Segment<Vec2>

Represents a segment in 2D space defined by a start and end point.

Link copied to clipboard
data class Vec2(val x: Double, val y: Double) : Vector<Vec2>

This class represents two-dimensional vectors and points in a Euclidean space.

Functions

Link copied to clipboard
fun computeIntersection(segment1: Segment<Vec2>, segment2: Segment<Vec2>): Vec2

Computes the intersection point of two segments.